<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
//use yii\jui\DatePicker;
/* @var $this yii\web\View */
/* @var $model app\models\Personinfo */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="personinfo-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'stu_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'stu_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'sex')->dropDownList(['0'=>'男','1'=>'女']) ?>

    <?= $form->field($model, 'card_id')->textInput(['maxlength' => true])->label('身份证号（18位）') ?>

    <?= $form->field($model, 'used_name')->textInput(['maxlength' => true])->label('曾用名（若没有则填写“无”）') ?>

    <?= $form->field($model, 'nation')->dropDownList($nations) ?>

    <?= $form->field($model, 'political')->dropDownList($politicals) ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => true])->label('籍贯（按照“省-地级市”格式填写）') ?>

    <?= $form->field($model, 'religion')->dropDownList($religions) ?>

    <?= $form->field($model, 'height')->textInput(['maxlength' => true])->label('身高/cm(3位数字)') ?>

    <?= $form->field($model, 'maritial_status')->dropDownList(['未婚'=>'未婚','已婚'=>'已婚']) ?>

    <?= $form->field($model, 'blood_type')->dropDownList(['未知'=>'未知','O型'=>'O型','A型'=>'A型','B型'=>'B型','AB型'=>'AB型']) ?>

    <?= $form->field($model, 'telephone')->textInput(['maxlength' => true])->label('联系电话（11位数字）') ?>

    <?= $form->field($model, 'qq')->textInput(['maxlength' => true])->label('QQ(5-15位数字)') ?>

    <?= $form->field($model, 'blank')->dropDownList(['中国工商银行'=>'中国工商银行','广西农村信用社'=>'广西农村信用社','中国银行'=>'中国银行']) ?>

    <?= $form->field($model, 'blank_num')->textInput(['maxlength' => true]) ?>


    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '添加' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
